import com.google.appengine.api.datastore.*

def key = KeyFactory.createKey("user",Long.parseLong(params["id"]))
def entity = datastore.get(key)

entity << params.subMap(["name", "email","alias"])

datastore.withTransaction{
	entity.save()
}

request['message'] = "用户修改成功!"

redirect "/userlist/1"